package com.example.springboot_demo.service;

import com.example.springboot_demo.pojo.Book;
import com.example.springboot_demo.pojo.Cart;
import com.example.springboot_demo.pojo.Page;

import java.util.List;

public interface BookService {
    Page queryBooks(String queryName, int pageNo, int pageSize);

    List<Book> getAllBooks();

    void deleteBook(int id);

    void updateBook(Book book);

    Book getBookById(int bookId);

    List<Book> getAllBooksByName(String queryName);
    void updateDataByCart(Cart<Book> cart);

}
